package com.pro.service.impl;

import com.pro.service.MinioTestService;
import com.pro.util.imgBrowserUtil.util.MinioUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Service(value = "MinioServiceImpl")
public class MinioTestServiceImpl implements MinioTestService {

    @Override
    public String uploadImage(String folder, MultipartFile multipartFile) {
        return MinioUtil.uploadImage(folder,multipartFile);
    }

    @Override
    public List<String> uploadImage(String folder, List<MultipartFile> multipartFileList) {
        return MinioUtil.uploadImage(folder,multipartFileList);
    }

    @Override
    public Boolean delImage(String folder, String name) {
        System.out.println("进入了service"+name);
        return MinioUtil.delImage(folder,name);
    }


}
